package com.example.cloud.model.config;

import com.alibaba.fastjson.annotation.JSONField;
import com.example.cloud.model.common.CommonModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

@Entity(name = "holiday_remind")
@Data
@EqualsAndHashCode(callSuper = false)
public class HolidayRemind extends CommonModel {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    @Column(name = "holiday_date")
    private String holidayDate;

    @Column(name = "holiday_name")
    private String holidayName;

    @JSONField(serialize = false)
    @Column(name="account_id")
    private Long accountId;
}
